Search
CommonUtils.filter(T, D) Method (Iterable(T), Class(D))
See Also
 






Creates Iterable that iterates only over the subset of the given Iterable that consist of elements of desired type.

Namespace: com.mindfusion.common
Package: com.mindfusion.common

 Syntax

Java  Copy Code

public static <T, D> Iterable<D> filter (
    Iterable<T> unfiltered,
    Class<D> desiredType
)

 Parameters

unfiltered

the collection of items that can be of different type.

desiredType

the class of the items in the collection to be returned.

 Return Value

An iterator over the collection items of the desired type.

 See Also